<!doctype html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport"
        content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <link rel="shortcut icon" href="./images/favicon.ico" type="image/x-icon">
  <link rel="stylesheet" href="css/fontawesome-all.min.css">
  <link rel="stylesheet" href="dist/main.css">
  <script src="../dist/permissions.js"></script>
  <title>相册</title>
</head>
<body>
<div id="wrapper">
  <!-- Main -->
  <div id="main"></div>
</div>

<script type="text/javascript">
  let listUrl =
  `	 , , images/h1.jpg
		 , , images/h2.jpg
		 , , images/h3.jpg
		 , , images/h4.jpg
		 , , images/h5.jpg
		 , , images/h6.jpg
		 , , images/h7.jpg
		 , , images/h8.jpg
		 , , images/h9.jpg
		 , , images/h10.jpg
		 , , images/h11.jpg
		 , , images/h12.jpg
		 , , images/h13.jpg
		 , , images/h14.jpg	`;
  listUrl = listUrl.split("\n");
  for (let i = 0; i < listUrl.length; i++) {
    listUrl[i] = listUrl[i].split(",");
  }

  function creatArticle(listUrl) {
    var parent = document.getElementById("main");
    for (let i = 0; i < listUrl.length; i++) {
      const article = document.createElement("article");
      article.className = "thumb";
      parent.appendChild(article);
      const a = document.createElement("a");
      a.className = "image";
      a.href = listUrl[i][2];
      article.appendChild(a);
      const img = document.createElement("img");
      img.src = listUrl[i][2] + "";
      a.appendChild(img);
      const h2 = document.createElement("h2");
      h2.innerHTML = listUrl[i][0];
      article.appendChild(h2);
      const p = document.createElement("p");
      p.innerHTML = listUrl[i][1];
      article.appendChild(p);
    }
  }
  creatArticle(listUrl);
</script>


<script src="dist/jquery.min.js"></script>
<script src="dist/jquery.poptrox.min.js"></script>
<script src="dist/browser.min.js"></script>
<script src="dist/breakpoints.min.js"></script>
<script src="dist/util.js"></script>
<script src="dist/main.js"></script>
<div class="poptrox-overlay" style="position: fixed; left: 0px; top: 0px; z-index: 20000; width: 100%; height: 100%; text-align: center; cursor: pointer; opacity: 1; display: none;">
  <div style="display: inline-block; height: 100%; vertical-align: middle; "></div>
  <div style="position: absolute; left: 0px; top: 0px; width: 100%; height: 100%; background: rgb(0, 0, 0); opacity: 0; "></div>
  <div class="poptrox-popup" style="display: none; vertical-align: middle; position: relative; z-index: 1;  min-width: 150px; min-height: 150px; width: auto; height: auto;">
    <div class="loader" style=" display: none;"></div>
    <div class="pic" style=" text-indent: 0px; display: none;"></div>
    <div class="caption" style=" display: none;">
      <h2> </h2>
      <p> </p>
    </div>
    <span class="closer" style=" display: none;"></span>
    <div class="nav-previous" style=" display: none;"></div>
    <div class="nav-next" style=" display: none;"></div>
  </div>
</div>
</body>
</html>
